//
//  ViewController.m
//  MasonryDemo
//
//  Created by hpkj on 2020/1/20.
//  Copyright © 2020 hpkj. All rights reserved.
//

#import "ViewController.h"
#import "CustomView.h"
#import "Masonry.h"
@interface ViewController ()
@property (nonatomic,strong) CustomView *customView;
@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.customView = [CustomView new];
    [self.view addSubview:_customView];
    _customView.backgroundColor = [UIColor grayColor];
    [_customView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.view.mas_top).offset(100);
        make.left.equalTo(@20);
        make.right.equalTo(@-20);
        make.bottom.equalTo(@-20);
    }];
    
    
}
@end
